package com.diver.flinkdemo.entity.xxt;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;
import lombok.experimental.Accessors;

import java.util.Date;

/**
 * @Author liuC
 * @Date 2022/10/8 0008 16:50
 * @Describe
 */
@Builder
@Data
@AllArgsConstructor
@NoArgsConstructor
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value = "微信用户绑定phone对象", description = "xxt-微信绑定手机关系表")
@TableName("phone_login")
public class PhoneLogin implements java.io.Serializable {

    // 唯一标识
    @TableId(type = IdType.UUID)
    @ApiModelProperty(value = "主键")
    private String id;

    // 电话号码
    @ApiModelProperty(value = "电话号码")
    private String phone;

    //微信号
    @ApiModelProperty(value = "微信openId")
    private String openId;

    //是否删除
    @ApiModelProperty(value = "是否删除 0：否 1：是")
    private String isDelete;

    // 创建时间
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
//    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建时间")
    private Date createTime;

    // 创建人
    @ApiModelProperty(value = "创建人")
    private String createPerson;

    // 更新时间
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
//    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "更新时间")
    private Date updateTime;

    // 更新人
    @ApiModelProperty(value = "更新人")
    private String updatePerson;
}
